<template>
  <div>
    <el-button type="primary" size="default" @click="winOpenFn"
      >打开一个新页签</el-button
    >
    
  </div>
</template>

<script>
export default {
  name: "baseInfo",
  data() {
    return {
      id: "dakjsgldjashgdflasghbdlka,sjhdaslkjdha",
    };
  },
  mounted() {
    console.log("mounted");
  },
  methods: {
    winOpenFn(e) {
      window.open(
        `http://localhost:8080/#/personal/personalCenter?id=${this.id}`
      );
    },
  },
};
</script>

<style>
</style>